﻿using System;
using System.Collections.Generic;
using LDM.Sys.ServiceAPI.Model.DBModel;
using Microsoft.Extensions.DependencyInjection;
using Utility.Domains.Repositories;

namespace LDM.Sys.Repository.Interfaces
{
    /// <summary>
    /// 菜单仓储接口
    /// </summary>
    public interface ISysMenuRepository :IBaseRepository<SysMenu>, IScoped
    {
        /// <summary>
        /// 获取菜单
        /// </summary>
        /// <returns></returns>
        public List<SysMenu> GetSysMenus();

        /// <summary>
        /// 获取当前菜单Id下的所有父级菜单Id
        /// </summary>
        /// <returns></returns>
        public List<SysMenu> GetParentMenus(int menuId);

        /// <summary>
        /// 获取当前菜单Id下的所有子级菜单Id
        /// </summary>
        /// <returns></returns>
        public List<SysMenu> GetChildMenus(int menuId);
    }
}
